package com.example.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import com.example.model.HomeCategoryDTO;
import com.example.model.resp.ListCategoryResp;

@Mapper
public interface CategoryMapper {

    @Select("select * from tb_category")
    List<ListCategoryResp> getCategoryList();

    @Select("select id, category from tb_category")
    List<HomeCategoryDTO> getHomeCategoryList();
}
